<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="com.tz.hospital.entity.*, java.util.List "%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<!-- 引入 layui.css -->
<link rel="stylesheet" href="/hospital_system/layui-v2.6.8/layui/css/layui.css"/>
<!-- 引入 layui.js -->
<script src="/hospital_system/layui-v2.6.8/layui/layui.js"></script>
<style type="text/css">
.fy{
top: 550px;
left: 950px;
position:fixed;
}
</style>
</head>
<body>
 
 <%if(request.getAttribute("tip")!=null){ %>
 <%=request.getAttribute("tip") %>
 <%}else{ %>
 <table class="layui-table ys"  style="background-color:transparent; border:0px; " id="test2">
       
       <tr>
       <td>医生编号</td>
       <td>医生姓名</td>
       <td>性别</td>
       <td>职称</td>
       <td>职务</td>
       <td>联系电话</td>
       <td>门诊单价</td>
       <td>绩效</td>
       <td>评价</td>
       </tr>
       
       <tbody>
       <% List<hospital_doctor> l =(List) request.getAttribute("data"); %>
        <% if (l!=null){ %>
      <%  for(hospital_doctor e:l){ %>
        	  <tr>
        	  <td><%=e.getYsid() %></td>
        	  <td><%=e.getYsname() %></td>
        	  <td><%=e.getYssex() %></td>
        	  
        	  <td><%if(e.getYslevel()==1){%>
        	      专家
        	      <%}else if(e.getYslevel()==0){ %>
        	      普通
        	      <%} %>
        	  </td>
        	  <td><%=e.getYspost() %></td>
        	  <td><%=e.getYstelephone() %></td>
        	  <td><%=e.getYsmoney() %></td>
        	  <td><%=e.getAchi() %></td>
        	  <td><%if(e.getAssess()>80){ %>
        	  好评如潮
        	   <%}else if(e.getAssess()<=80 && e.getAssess()>60){ %>
        	   特别好评
        	   <%}else if(e.getAssess()<=60 && e.getAssess()>40){ %>
        	   多半好评
        	   <%}else if(e.getAssess()<=40){ %>
        	   褒贬不一
        	   <%} %>
        	  </td>
        	  </tr>
        	  
        	  
         <% } %>
         <% } %>
       </tbody>
       
       
     </table>
    <div class="fy"><i class="layui-btn layui-icon layui-icon-prev layui-bg-red" onclick="syy()">上一页</i>
当前页(<%=request.getAttribute("dqy") %>)
 <i class="layui-btn layui-icon layui-icon-next layui-bg-red" onclick="xyy()">下一页</i>
共  (<%=request.getAttribute("fjy") %>)  页</div>

<% } %>
<script type="text/javascript">
    function xyy(){
    	
    	if(<%=(int)request.getAttribute("fjy") %>!=<%=(int)request.getAttribute("dqy") %>)
    	location.href="/hospital_system/alldoctorController?dqy="+<%=request.getAttribute("dqy") %>+"&xyy=x";
    }
 function syy(){
    	
	 if(1!=<%=(int)request.getAttribute("dqy") %>)
    	location.href="/hospital_system/alldoctorController?dqy="+<%=request.getAttribute("dqy") %>+"&syy=s";
    }
    </script>
</body>
</html>